<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<link type="text/css" rel="stylesheet" href="/static/main.css" />
	<script type="text/javascript" src="/static/misc.js" ></script>
</head>
<body>
	{% from "_formhelpers.html" import render_nav, render_field, render_transactions, render_accounts, render_transaction_form, render_total_balance %}
	{{ render_nav(user_info, login_url) }}
	<div class="content">
		{{ render_transaction_form(form, edit_mode) }}
		{{ render_transactions(last_transactions) }}
		{{ render_accounts(accounts) }}
		
		<strong>Total balance:</strong>
		{{ render_total_balance(total_balance) }}
	</div>
	
	<script type="text/javascript">
		bindDateKeys(document.getElementById("date"));
	</script>
</body>
</html>